<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::GeometricShapeBox Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_geometric_shape_box.html">GeometricShapeBox</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_s_p_h_1_1_geometric_shape_box-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::GeometricShapeBox Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Inherits <a class="el" href="class_s_p_h_1_1_geometric_shape.html">SPH::GeometricShape</a>, and <a class="el" href="class_s_p_h_1_1_shape.html">SPH::Shape</a>.</p>

<p>Inherited by <a class="el" href="class_s_p_h_1_1_transform_shape.html">SPH::TransformShape&lt; GeometricShapeBox &gt;</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a028d9662a5b8bd43b35b5887b3e2fd09"><td class="memItemLeft" align="right" valign="top"><a id="a028d9662a5b8bd43b35b5887b3e2fd09"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>GeometricShapeBox</b> (const Vec2d &amp;halfsize, const std::string &amp;shape_name=&quot;GeometricShapeBox&quot;)</td></tr>
<tr class="separator:a028d9662a5b8bd43b35b5887b3e2fd09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a219f3359ddf9805d3f856a6b50135403"><td class="memItemLeft" align="right" valign="top"><a id="a219f3359ddf9805d3f856a6b50135403"></a>
virtual <a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>checkContain</b> (const Vec2d &amp;pnt, <a class="el" href="classbool.html">bool</a> BOUNDARY_INCLUDED=true) override</td></tr>
<tr class="separator:a219f3359ddf9805d3f856a6b50135403"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a463259d8b106ef6713ce7620dab622d3"><td class="memItemLeft" align="right" valign="top"><a id="a463259d8b106ef6713ce7620dab622d3"></a>
virtual Vec2d&#160;</td><td class="memItemRight" valign="bottom"><b>findClosestPoint</b> (const Vec2d &amp;pnt) override</td></tr>
<tr class="separator:a463259d8b106ef6713ce7620dab622d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa067e15e8a13befc39eaa81842d172e"><td class="memItemLeft" align="right" valign="top"><a id="afa067e15e8a13befc39eaa81842d172e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>GeometricShapeBox</b> (const Vec3d &amp;halfsize, const std::string &amp;shape_name=&quot;GeometricShapeBox&quot;)</td></tr>
<tr class="separator:afa067e15e8a13befc39eaa81842d172e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9552ee83505100611a9150f47c9611ae"><td class="memItemLeft" align="right" valign="top"><a id="a9552ee83505100611a9150f47c9611ae"></a>
virtual <a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>checkContain</b> (const Vec3d &amp;pnt, <a class="el" href="classbool.html">bool</a> BOUNDARY_INCLUDED=true) override</td></tr>
<tr class="separator:a9552ee83505100611a9150f47c9611ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75b77d58dfa9b4bdc39ef9c604afe36d"><td class="memItemLeft" align="right" valign="top"><a id="a75b77d58dfa9b4bdc39ef9c604afe36d"></a>
virtual Vec3d&#160;</td><td class="memItemRight" valign="bottom"><b>findClosestPoint</b> (const Vec3d &amp;pnt) override</td></tr>
<tr class="separator:a75b77d58dfa9b4bdc39ef9c604afe36d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_geometric_shape"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_geometric_shape')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_geometric_shape.html">SPH::GeometricShape</a></td></tr>
<tr class="memitem:a1b552a9801b776bc8e34c7fe6dcedcb4 inherit pub_methods_class_s_p_h_1_1_geometric_shape"><td class="memItemLeft" align="right" valign="top"><a id="a1b552a9801b776bc8e34c7fe6dcedcb4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>GeometricShape</b> (const std::string &amp;shape_name)</td></tr>
<tr class="separator:a1b552a9801b776bc8e34c7fe6dcedcb4 inherit pub_methods_class_s_p_h_1_1_geometric_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fce30e15fd2c20d01cc2283658c326a inherit pub_methods_class_s_p_h_1_1_geometric_shape"><td class="memItemLeft" align="right" valign="top"><a id="a0fce30e15fd2c20d01cc2283658c326a"></a>
SimTK::ContactGeometry *&#160;</td><td class="memItemRight" valign="bottom"><b>getContactGeometry</b> ()</td></tr>
<tr class="separator:a0fce30e15fd2c20d01cc2283658c326a inherit pub_methods_class_s_p_h_1_1_geometric_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_shape"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_shape')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_shape.html">SPH::Shape</a></td></tr>
<tr class="memitem:a1c9fde7ad7ef1883a53508fce789cfc8 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a1c9fde7ad7ef1883a53508fce789cfc8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Shape</b> (const std::string &amp;shape_name)</td></tr>
<tr class="separator:a1c9fde7ad7ef1883a53508fce789cfc8 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace0e6216880b5ccb462523aa821a50b3 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="ace0e6216880b5ccb462523aa821a50b3"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>getName</b> ()</td></tr>
<tr class="separator:ace0e6216880b5ccb462523aa821a50b3 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6337edd9c272044cb7f1fa60c927395 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="af6337edd9c272044cb7f1fa60c927395"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setName</b> (const std::string &amp;name)</td></tr>
<tr class="separator:af6337edd9c272044cb7f1fa60c927395 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b193691a25da216949134ee547a1dd4 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a0b193691a25da216949134ee547a1dd4"></a>
<a class="el" href="class_s_p_h_1_1_base_bounding_box.html">BoundingBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getBounds</b> ()</td></tr>
<tr class="separator:a0b193691a25da216949134ee547a1dd4 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b46b069ecc818d37a2a0ed9ed0a3f82 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a5b46b069ecc818d37a2a0ed9ed0a3f82"></a>
virtual <a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>isValid</b> ()</td></tr>
<tr class="separator:a5b46b069ecc818d37a2a0ed9ed0a3f82 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95e323f0bea0577f88c77e67b99743a5 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a95e323f0bea0577f88c77e67b99743a5"></a>
<a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>checkNotFar</b> (const Vecd &amp;input_pnt, Real threshold)</td></tr>
<tr class="separator:a95e323f0bea0577f88c77e67b99743a5 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1368ee142ede83fc6d7ef0ffae15b51 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="aa1368ee142ede83fc6d7ef0ffae15b51"></a>
<a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>checkNearSurface</b> (const Vecd &amp;input_pnt, Real threshold)</td></tr>
<tr class="separator:aa1368ee142ede83fc6d7ef0ffae15b51 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22a00542237b211eddb3e54b8a6eb856 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_shape.html#a22a00542237b211eddb3e54b8a6eb856">findSignedDistance</a> (const Vecd &amp;input_pnt)</td></tr>
<tr class="separator:a22a00542237b211eddb3e54b8a6eb856 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfc828b144936617d50e977ae301b0e0 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_shape.html#adfc828b144936617d50e977ae301b0e0">findNormalDirection</a> (const Vecd &amp;input_pnt)</td></tr>
<tr class="separator:adfc828b144936617d50e977ae301b0e0 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a12bb00ebb2fe307241921c877d57a0af"><td class="memItemLeft" align="right" valign="top"><a id="a12bb00ebb2fe307241921c877d57a0af"></a>
virtual <a class="el" href="class_s_p_h_1_1_base_bounding_box.html">BoundingBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>findBounds</b> () override</td></tr>
<tr class="separator:a12bb00ebb2fe307241921c877d57a0af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58d4c94c3da6e9c685e130a0fc62a53b"><td class="memItemLeft" align="right" valign="top"><a id="a58d4c94c3da6e9c685e130a0fc62a53b"></a>
virtual <a class="el" href="class_s_p_h_1_1_base_bounding_box.html">BoundingBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>findBounds</b> () override</td></tr>
<tr class="separator:a58d4c94c3da6e9c685e130a0fc62a53b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:afe47a4e1f846dc0de0f5ddf72749f190"><td class="memItemLeft" align="right" valign="top"><a id="afe47a4e1f846dc0de0f5ddf72749f190"></a>
Vec2d&#160;</td><td class="memItemRight" valign="bottom"><b>halfsize_</b></td></tr>
<tr class="separator:afe47a4e1f846dc0de0f5ddf72749f190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a495983b082ff8bf7d3e1dab82ec2a176"><td class="memItemLeft" align="right" valign="top"><a id="a495983b082ff8bf7d3e1dab82ec2a176"></a>
<a class="el" href="class_s_p_h_1_1_multi_polygon.html">MultiPolygon</a>&#160;</td><td class="memItemRight" valign="bottom"><b>multi_polygon_</b></td></tr>
<tr class="separator:a495983b082ff8bf7d3e1dab82ec2a176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3254c70664da147e39f6e9a05e0dfc3f"><td class="memItemLeft" align="right" valign="top"><a id="a3254c70664da147e39f6e9a05e0dfc3f"></a>
Vec3d&#160;</td><td class="memItemRight" valign="bottom"><b>halfsize_</b></td></tr>
<tr class="separator:a3254c70664da147e39f6e9a05e0dfc3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_geometric_shape"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_geometric_shape')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_geometric_shape.html">SPH::GeometricShape</a></td></tr>
<tr class="memitem:a4723400e3d9c689ca813a9e9fc816827 inherit pro_attribs_class_s_p_h_1_1_geometric_shape"><td class="memItemLeft" align="right" valign="top"><a id="a4723400e3d9c689ca813a9e9fc816827"></a>
SimTK::ContactGeometry *&#160;</td><td class="memItemRight" valign="bottom"><b>contact_geometry_</b></td></tr>
<tr class="separator:a4723400e3d9c689ca813a9e9fc816827 inherit pro_attribs_class_s_p_h_1_1_geometric_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_shape"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_shape')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_shape.html">SPH::Shape</a></td></tr>
<tr class="memitem:a8e6dd281937b9208b4cdd221e7feaa51 inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a8e6dd281937b9208b4cdd221e7feaa51"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>name_</b></td></tr>
<tr class="separator:a8e6dd281937b9208b4cdd221e7feaa51 inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a955c2bbaa9e4684d3b22658f05286458 inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a955c2bbaa9e4684d3b22658f05286458"></a>
<a class="el" href="class_s_p_h_1_1_base_bounding_box.html">BoundingBox</a>&#160;</td><td class="memItemRight" valign="bottom"><b>bounding_box_</b></td></tr>
<tr class="separator:a955c2bbaa9e4684d3b22658f05286458 inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18bd2c945133cc142708e14468a29d5d inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a18bd2c945133cc142708e14468a29d5d"></a>
<a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>is_bounds_found_</b></td></tr>
<tr class="separator:a18bd2c945133cc142708e14468a29d5d inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/for_2D_build/geometries/<a class="el" href="for__2_d__build_2geometries_2geometric__shape_8h_source.html">geometric_shape.h</a></li>
<li>SPHINXsys/src/for_2D_build/geometries/geometric_shape.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
